#include "StdAfx.h"
#include "lottofun.h"
#include "defender.h"
#include "machine/williamsmachine.h"

static InputPort Port1 =
	{
		{
		{"Up",			I_UP,			0x01,	I_HIGH},
		{"Down",			I_DOWN,		0x02,	I_HIGH},
		{"Left",			I_LEFT,		0x04,	I_HIGH},
		{"Right",		I_RIGHT,		0x08,	I_HIGH},
		{"Start 1",		I_START1,	0x10,	I_HIGH},
		{"Start 2",		I_START2,	0x20,	I_HIGH},
		{"Fire Up",		I2_UP,		0x40,	I_HIGH},
		{"Fire Down",	I2_DOWN,		0x80,	I_HIGH},
		}
	};

static InputPort Port2 =
	{
		{
		{"Fire Left",	I2_LEFT,		0x01,	I_HIGH},
		{"Fire Right",	I2_RIGHT,	0x02,	I_HIGH},
		{"Unknown",		0,				0x04,	I_HIGH},
		{"Unknown",		0,				0x08,	I_HIGH},
		{"Unknown",		0,				0x10,	I_HIGH},
		{"Unknown",		0,				0x20,	I_HIGH},
		{"Unknown",		0,				0x40,	I_HIGH},
		{"Unknown",		0,				0x80,	I_HIGH},
		}
	};

static highscore_t highscore[] =
	{
//	{0xB260,0x60,0x00,0x48},
	{0,-1}
	};

Clottofun::Clottofun()
{
SetName("lottofun");						//set romset name
SetScreen(304,256);
SetHighScoreInfo(highscore);
SetPort(0,&Port1);
SetPort(1,&Port2);
SetPort(2,&defenderPort3);
AddROM("vl7a.dat",	0x0D000,0x1000,0xfb2aec2c,ROM_CPU1);
AddROM("vl7c.dat",	0x0E000,0x1000,0x9a496519,ROM_CPU1);
AddROM("vl7e.dat",	0x0F000,0x1000,0x032cab4b,ROM_CPU1);
AddROM("vl4e.dat",	0x10000,0x1000,0x5e9af236,ROM_CPU1);
AddROM("vl4c.dat",	0x11000,0x1000,0x4b134ae2,ROM_CPU1);
AddROM("vl4a.dat",	0x12000,0x1000,0xb2f1f95a,ROM_CPU1);
AddROM("vl5e.dat",	0x13000,0x1000,0xc8681c55,ROM_CPU1);
AddROM("vl5c.dat",	0x14000,0x1000,0xeb9351e0,ROM_CPU1);
AddROM("vl5a.dat",	0x15000,0x1000,0x534f2fa1,ROM_CPU1);
AddROM("vl6e.dat",	0x16000,0x1000,0xbefac592,ROM_CPU1);
AddROM("vl6c.dat",	0x17000,0x1000,0xa73d7f13,ROM_CPU1);
AddROM("vl6a.dat",	0x18000,0x1000,0x5730a43d,ROM_CPU1);
AddROM("vl2532.snd",	0x0F000,0x1000,0x214b8a04,ROM_CPU2);
}

CMachine *Clottofun::CreateMachine()
{
return(new CWilliamsMachine());
}
